package com.ms.oschina.adapter;

import java.util.List;

import android.view.View;
import android.widget.AbsListView;
import android.widget.AdapterView;

import com.ms.oschina.api.remote.OsChinaApi;
import com.ms.oschina.base.BaseViewHolder;
import com.ms.oschina.bean.Active;
import com.ms.oschina.viewholder.FriendsViewHolder;

public class FriendsAdapter extends PageIndexListAdapter<Active> {

	public FriendsAdapter(AbsListView listView, List<Active> list,
			boolean loadMore) {
		super(listView, list, loadMore);
	}

	@Override
	public void onNormalItemClick(AdapterView<?> parent, View view,
			int position, long id) {
		Active Active = getListData().get(position);
	}

	@Override
	public BaseViewHolder<Active> getItemViewHolder() {
		return new FriendsViewHolder();
	}

	@Override
	public List<Active> getLoadMoreData() throws Exception {
		return OsChinaApi.getFriendsInfo(pageIndex);
	}

}
